package com.spring.cloud.study.collection;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/1/26
 * Time: 17:11
 * To change this template use File | Settings | File Templates.
 * Description: name指定要负载的服务名称，fallback指定在服务提供者失效时，要调用的类
 * 如果需要访问导致回退触发的原因，可以使用@FeignClient内的fallbackFactory属性。
 */
@FeignClient(name = "server-provider",fallback = SysUserFeignImpl.class)
public interface SysUserFeignI {

    @RequestMapping("/api/test1")
    public String test1();

    @RequestMapping("/api/test2")
    public String test2();

}
